package de.tum.in.eist.poll.client.widgets.content;

public class MainUIFactory implements ContentFactory {
	/**
	 * main UI factory, decides which contents should be loaded.
	 */
	
	@Override
	public Content createContent(String parameter) {
		if (parameter == "login" || parameter == ""){
			return new LoginUI();
		}else if (parameter == "LectureOverview") {
			return new LectureOverviewUI();
		} else {
			return new MainUI();
		}
	}

}
